<template>
  <div id="app">
    <keep-alive>
      <router-view v-if="$route.meta.keepAlive"/>
    </keep-alive>
    <router-view v-if="!$route.meta.keepAlive"/>
  </div>
</template>

<script>
  // import  "babel-polyfill"
export default {
  name: 'App',
  watch:{
    $route() {
      console.log(this.$route.meta.keepAlive)
    }
  }
}
</script>
